package cstxch616.recycleproject.fragment;


import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;

import cstxch616.recycleproject.R;

/**
 * Created by Xiachenhao1996 on 2017/5/23.
 */

public class CourseFragment extends Fragment {
    private TextView tvinfo;
    private View view=null;
    private Context context;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.coursefragment, container, false);
        context = view.getContext();
        tvinfo=(TextView)view.findViewById(R.id.textView5);
        tvinfo.setText("xx");
        Toast.makeText(context,"asdasda",Toast.LENGTH_LONG).show();
        return view;

    }
}
